Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Other: Use new Matcher API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Jasiun committed Jan 19, 2018
1 parent b8acb5b commit c3ffe33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linkengine.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class LinkEngine extends Plugin {
// Build converter from view to model for data pipeline.
buildViewConverter().for( data.viewToModel )
// Convert <a> with href (value doesn't matter).
.from( { name: 'a', attribute: { href: /.?/ } } )
.from( { name: 'a', attribute: { href: true } } )
.toAttribute( viewElement => ( {
key: 'linkHref',
value: viewElement.getAttribute( 'href' )
Expand Down

0 comments on commit c3ffe33

Please sign in to comment.