wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/resources/util.highlightSubstring.js

Summary

Maintainability
A
1 hr
Test Coverage

Function highlightSubstring has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var highlightSubstring = function ( substring, string, options ) {
        if ( substring === '' || string === '' ) {
            return string;
        }

Severity: Minor
Found in client/resources/util.highlightSubstring.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status