Repository navigation
Keep a Korean particle after a URL's closing mark out of the terminal link - #687
Merged
Merged
Conversation
… link A URL such as `(https://github.com/o/r/pull/682)이` linked `https://github.com/o/r/pull/682)이`, because the finite particle boundary applied only to path candidates. A URL now takes the same boundary in parseToken, which the terminal and the request view share, and since a URL cannot be checked the particle is always prose.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
터미널에서
PR #682 (https://github.com/o/r/pull/682)이 끝났습니다처럼 URL 뒤에 닫는 괄호와 한국어 조사가 붙으면, 마우스를 올렸을 때)이까지 링크로 잡혀 클릭하면/682)%EC%9D%B4로 열렸습니다.닫는 괄호 뒤 조사를 문장으로 읽는 유한 규칙이 경로 후보에만 있었고 URL은 그 단계를 건너뛰었기 때문입니다.
이제 URL도 같은 규칙을 탑니다. URL은 디스크처럼 확인할 수 없으므로 닫는 괄호 뒤 조사는 항상 문장으로 보고, 닫는 괄호 없이 붙은 한글(
.../wiki/서울이)은 기존대로 자르지 않습니다.규칙은
parseToken에 있어 터미널 링크와 요청 뷰가 함께 고쳐집니다.Review
)이·)에서같은 조합을 항상 문장으로 읽습니다. 실제로)이로 끝나는 URL은 더 이상 그 꼬리까지 링크되지 않습니다.web/src/terminalLinks.ts- 링크 후보는 포인터가 행에 올 때마다 계산되는 경로입니다. URL 토큰에서만 정규식 한 번과strip한 번이 더 돕니다.Evidence
scripts/verify-web.sh web typecheck|lint|test통과(1165 passed, 1 skipped),node scripts/check-design-contract.mjs통과.