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
Suppose I have a field in collection that may contain Persian characters, now slug does not work with these type of characters, and only add -digits.
What I have used in some where else in my migration script is: str = str.toLowerCase().replace(/([^a-z0-9\-\_\u0621-\u0628\u062A-\u063A\u0641-\u0642\u0644-\u0648\u064E-\u0651\u0655\u067E\u0686\u0698\u06A9\u06AF\u06BE\u06CC]+)/g, slugSeparator).replace(new RegExp(slugSeparator + '{2,}', 'g'), slugSeparator); to support Persian charcters
The text was updated successfully, but these errors were encountered:
Suppose I have a field in collection that may contain Persian characters, now slug does not work with these type of characters, and only add -digits.
What I have used in some where else in my migration script is:
str = str.toLowerCase().replace(/([^a-z0-9\-\_\u0621-\u0628\u062A-\u063A\u0641-\u0642\u0644-\u0648\u064E-\u0651\u0655\u067E\u0686\u0698\u06A9\u06AF\u06BE\u06CC]+)/g, slugSeparator).replace(new RegExp(slugSeparator + '{2,}', 'g'), slugSeparator);
to support Persian charctersThe text was updated successfully, but these errors were encountered: