buildingSMART / IDS-Audit-tool

Official buildingSMART tool to audit the validity of a .ids file (according to the full IDSxml standard).
MIT License
19 stars 8 forks source link

Regular Expression Values Exception #22

Closed francescoaielloALMA closed 7 months ago

francescoaielloALMA commented 9 months ago

Hi! I'm getting exception when I try to validate IDS file that contains regular expression with escape chars inside (for instance: "\d"). The exception is: "Invalid pattern...". In the attachements there is a sample file.

reg_exp_error.zip

aothms commented 9 months ago

<xs:pattern value="CUP\d{8}"/>

I think \d is not allowed in XSD regex flavour. Did you try CUP[0-9]{8}?

https://www.w3.org/TR/xmlschema11-2/#regex-piece

francescoaielloALMA commented 9 months ago

I don't know, but I think that Audit Tool must catch the exception and put it in the validation errors list. Actually the tool crashes.

francescoaielloALMA commented 7 months ago

Any news about this issue? Thanks

CBenghi commented 7 months ago

Hi @francescoaielloALMA, I've been neglecting the tool until the consolidation of the schema occurred. Is this still a problem? I can't reproduce with the current binaries.

francescoaielloALMA commented 7 months ago

I found the issue. The problem was in my code. The issue can be closed.