azist / azos-js

Provides Azos base types and services functionality for Java Script apps
MIT License
1 stars 3 forks source link

Add `strings.patternMatch()` function #121

Closed itadapter closed 1 month ago

itadapter commented 2 months ago

Add under #strings.js

matchPattern(val, pat, wc =*, swc=?, sensecase=false): bool

Steal it form here: https://github.com/azist/azos/blob/018c3edd5b5b711bfe9f699acf9ee59a2fe03ab5/src/Azos/Text/Utils.cs#L132

Get unit tests for MatchPattern():

https://github.com/azist/azos/blob/018c3edd5b5b711bfe9f699acf9ee59a2fe03ab5/src/testing/Azos.Tests.Nub/Parsing/UtilsTests.cs#L38