Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extended matcher to allow for new definition of num-dot-decimal where… #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gmconte
Copy link
Contributor

@gmconte gmconte commented Aug 9, 2023

According to the documentation:
https://www.xbrl.org/Specification/inlineXBRL-transformationRegistry/CR-2019-04-19/inlineXBRL-transformationRegistry-CR-2019-04-19.html#sec-ixt-20

numbers can also start simply with the decimal part without integer part.
I.e. ".23"

image

The current code throws an exception in this case, as it can't match numbers without the integer part.
As the rule states "The integer part is now optional if the dot and fractional part are present", I proposed in my change to add an alternative pattern to the matcher

@gmconte
Copy link
Contributor Author

gmconte commented Aug 9, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant