Skip to content

Commit

Permalink
import updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj committed Jan 24, 2025
1 parent defcc7a commit d4fca9f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/content-type/formatting.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import moment from 'moment'
const urljoin = require('url-join')

import moment from 'moment'
import urlJoin from 'url-join';
const TIME_FORMAT = 'L hh:mm:ss a'

export function date(date: any) {
Expand Down Expand Up @@ -32,7 +31,7 @@ export function urlPattern(contentType: any) {
if (!contentType || !contentType.options) return 'Unknown'
if (!contentType.options.url_pattern) return 'N/A'

return urljoin(contentType.options.url_prefix, contentType.options.url_pattern)
return urlJoin(contentType.options.url_prefix, contentType.options.url_pattern)
}

export function checked(value: boolean) {
Expand Down

0 comments on commit d4fca9f

Please sign in to comment.