Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema key containing - not producing matches #25

Closed
vesauimonen opened this issue Oct 6, 2021 · 1 comment
Closed

Schema key containing - not producing matches #25

vesauimonen opened this issue Oct 6, 2021 · 1 comment

Comments

@vesauimonen
Copy link

Problem

Schema key containing - is not producing any matches.

Reproduction

from linkify_it import LinkifyIt

linkify = LinkifyIt().add('foo-bar:', 'http:')
print(linkify.test('Check foo-bar://baz'))  # False

For comparison, the original linkify-it:

const linkify = require('linkify-it')();

linkify.add('foo-bar:', 'http:');
console.log(linkify.test('Check foo-bar://baz'));  // true
@tsutsu3
Copy link
Owner

tsutsu3 commented Oct 6, 2021

Thanks, I'll fix it.

tsutsu3 added a commit that referenced this issue Oct 6, 2021
@tsutsu3 tsutsu3 mentioned this issue Oct 6, 2021
@tsutsu3 tsutsu3 closed this as completed Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants