Closed FDiskas closed 4 months ago
Migrate to regexp or string type In case it is a string - the developer should add additional escape characters and also can not pass regexp flags
const regex = /^\w(?:[\w-]{0,61}\w)?$/igm; const regex = new RegExp('^\\w(?:[\\w-]{0,61}\\w)?$', 'igm')
But if we change this to RegeXp instead of string - tools will act as it should
Migrate to regexp or string type In case it is a string - the developer should add additional escape characters and also can not pass regexp flags
But if we change this to RegeXp instead of string - tools will act as it should![image](https://github.com/sinclairzx81/typebox/assets/468006/da1e2be1-2f51-4b3f-8575-0926f414ffbb)