Skip to content

Commit

Permalink
Fix for XSDElement attributes with multiple spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Mar 3, 2024
1 parent 0b4a822 commit dbad416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xsd2vdm/src/main/java/xsd2vdm/XSDElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,11 @@ protected String toVDM(String indent)

try
{
if (value.matches("([0123456789.+-eE]+ ?)+"))
if (value.matches("^([+-.0123456789eE]+\\s*)+$"))
{
List<String> nums = new Vector<String>();

Pattern p = Pattern.compile("[0123456789.+-eE]+");
Pattern p = Pattern.compile("[+-.0123456789eE]+");
Matcher m = p.matcher(value);

while (m.find())
Expand Down

0 comments on commit dbad416

Please sign in to comment.