You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I figured out that when using ngf-pattern with spaces, the pattern match doesn't work correctly, because it includes the space in the regex pattern.
Example:
ngf-pattern='.xls, .xlsx, .csv'
Then when I try to upload .xlsx or .csv files it says it's not a valid file extension.
Inside the file validation, when it converts the string to regex, it doesn't remove spaces, so the regex pattern output would be: (^.*\.xls$)|(^ \.xlsx$)|(^ \.csv$). The subgroup 2 and 3 are including spaces.
The text was updated successfully, but these errors were encountered:
Hi Daniel.
I figured out that when using ngf-pattern with spaces, the pattern match doesn't work correctly, because it includes the space in the regex pattern.
Example:
ngf-pattern='.xls, .xlsx, .csv'
Then when I try to upload .xlsx or .csv files it says it's not a valid file extension.
Inside the file validation, when it converts the string to regex, it doesn't remove spaces, so the regex pattern output would be:
(^.*\.xls$)|(^ \.xlsx$)|(^ \.csv$)
. The subgroup 2 and 3 are including spaces.The text was updated successfully, but these errors were encountered: