Giter Club home page Giter Club logo

Comments (5)

DevSusu avatar DevSusu commented on June 18, 2024 1

Looks like removeMarkdown function in server/libs/markdown.js is causing problem.
Regex Expression textRegex does not capture non-ascii characters
_20170804_001

Solution

Changed textRegex to

const textRegex = new RegExp('(?=^|$|[^\\\\])b[a-z0-9-.,' + appdata.regex.cjk + appdata.regex.arabic + ']+(?=^|$|[^\\\\])', 'g')

It captures even non-ascii letters, and works on brower as well.
_20170804_002
_20170804_003

from wiki-v1.

zhang98722 avatar zhang98722 commented on June 18, 2024

and alse chinese like: δΈ­ζ–‡

from wiki-v1.

johnnyshields avatar johnnyshields commented on June 18, 2024

πŸ‘ my team needs this.

from wiki-v1.

CheHaoKang avatar CheHaoKang commented on June 18, 2024

const textRegex = new RegExp('(?=^|$|[^\\\\])b[a-z0-9-.,' + appdata.regex.cjk + appdata.regex.arabic + ']+(?=^|$|[^\\\\])', 'g')

Do we need to remove the "b" ?

from wiki-v1.

Trinyoung avatar Trinyoung commented on June 18, 2024

const textRegex = new RegExp('(?=^|$|[^\\\\])b[a-z0-9-.,' + appdata.regex.cjk + appdata.regex.arabic + ']+(?=^|$|[^\\\\])', 'g')
This regular expression not only plays a role in anticipation, but also doesn't work in English search. Can anyone use this expression to achieve the purpose of searching in Chinese?

from wiki-v1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.